package com.lagou.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author: liufh
 * @create: 2021-08-18 17:44
 */
@EnableConfigurationProperties
@Configuration
@ConfigurationProperties(prefix = "animal2")
public class Animal2 {

    private String code;

    private String name;

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Animal2{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
